import { alovaInstance } from "../request";
import { Login,User } from "@/types/user";
import { Result } from "@/types/request";

/**
 登录
 */
export const postLogin = (params: Login) =>{
	return alovaInstance.Post<Result<User>>('/api/auth/login', params);
}

/**
 * 列表
 */
export const getDemoList = (params: { pageNo: number; pageSize: number }) =>{
	return alovaInstance.Get('/demo7/list', {
		params:params
	});
}
	